﻿<%@ Page Language="C#" CodeBehind="MyDetails.aspx.cs" Inherits="BikeBouncer.Site.MyDetails_aspx" MasterPageFile="/MainLayout.master" %>
<%@ Register TagPrefix="BB" TagName="Ads" Src="/Ads.ascx" %>
<asp:Content ContentPlaceHolderID="MainContents" runat="server">
	<asp:Panel ID="PanSaved" CssClass="PanelOk Ok" runat="server">
		<asp:Label meta:resourcekey="LblSaved" runat="server" />!
	</asp:Panel>
	<asp:Panel ID="PanForm" runat="server">
		<p>
			<asp:Literal meta:resourcekey="LitIntroduction" runat="server" />
		</p>
		<div class="PanelForm">
			<asp:Label CssClass="FormLabelRequired" AssociatedControlID="TxtEmail" meta:resourcekey="LblEmail" runat="server" />
			<asp:TextBox ID="TxtEmail" CssClass="FormText" Width="220px" meta:resourcekey="TxtEmail" runat="server" />
			<asp:RequiredFieldValidator ID="ReqTxtEmail" ControlToValidate="TxtEmail" Display="Dynamic" Text="*" meta:resourcekey="ReqTxtEmail" runat="server" />
			<asp:RegularExpressionValidator ID="ValTxtEmail" ControlToValidate="TxtEmail" Display="Dynamic" Text="*" meta:resourcekey="ValTxtEmail" runat="server" />
			<br />
			<asp:Label AssociatedControlID="TxtPassword" meta:resourcekey="LblPassword" runat="server" />
			<asp:TextBox ID="TxtPassword" CssClass="FormText" Width="220px" meta:resourcekey="TxtPassword" runat="server" />
			<br />
			<asp:Label AssociatedControlID="TxtPasswordConfirm" meta:resourcekey="LblPasswordConfirm" runat="server" />
			<asp:TextBox ID="TxtPasswordConfirm" CssClass="FormText" Width="220px" meta:resourcekey="TxtPasswordConfirm" runat="server" />
			<asp:CompareValidator ID="ValTxtPasswordConfirm" ControlToValidate="TxtPasswordConfirm" ControlToCompare="TxtPassword" Display="Dynamic" Text="*" meta:resourcekey="ValTxtPasswordConfirm" runat="server" />
			<br />
			<asp:Label AssociatedControlID="TxtDisplayName" meta:resourcekey="LblDisplayName" runat="server" />
			<asp:TextBox ID="TxtDisplayName" CssClass="FormText" Width="220px" meta:resourcekey="TxtDisplayName" runat="server" />
			<br />

			<div id="TipsEmail" style="display:none">
				<div class="FormTips">
					<h4><asp:Literal meta:resourcekey="LitEmailTip" runat="server" /></h4>
					<p><asp:Literal meta:resourcekey="LitEmailTipInfo" runat="server" /></p>
				</div>
			</div>
			<div id="TipsPassword" style="display:none">
				<div class="FormTips">
					<h4><asp:Literal meta:resourcekey="LitPasswordTip" runat="server" /></h4>
					<p><asp:Literal meta:resourcekey="LitPasswordTipInfo" runat="server" /></p>
				</div>
			</div>
			<div id="TipsDisplayName" style="display:none">
				<div class="FormTips">
					<h4><asp:Literal meta:resourcekey="LitDisplayNameTip" runat="server" /></h4>
					<p><asp:Literal meta:resourcekey="LitDisplayNameTipInfo" runat="server" /></p>
				</div>
			</div>
			<script type="text/javascript">
				var btEmail = jQuery.extend({}, defaultTipOptions);
				var btPassword = jQuery.extend({}, defaultTipOptions);
				var btDisplayName = jQuery.extend({}, defaultTipOptions);

				btEmail.contentSelector = "$('#TipsEmail').html()";
				btPassword.contentSelector = "$('#TipsPassword').html()";
				btDisplayName.contentSelector = "$('#btDisplayName').html()";

				$("input[id$='_TxtEmail']").bt(btEmail);
				$("input[id$='_TxtPassword']").bt(btPassword);
				$("input[id$='_TxtDisplayName']").bt(btDisplayName);
			</script>
		</div>
		<div class="PanelForm">
			<p>
				<asp:Literal meta:resourcekey="LitAddress" runat="server" />
			</p>
			<asp:Label AssociatedControlID="TxtPostcode" meta:resourcekey="LblPostcode" runat="server" />
			<asp:TextBox ID="TxtPostcode" CssClass="FormText" Width="220px" meta:resourcekey="TxtPostcode" runat="server" />
			<br />
			<asp:Label AssociatedControlID="TxtLocation" meta:resourcekey="LblLocation" runat="server" />
			<asp:TextBox ID="TxtLocation" CssClass="FormText" Width="220px" meta:resourcekey="TxtLocation" runat="server" />
			<br />
			<asp:Label AssociatedControlID="TxtCity" meta:resourcekey="LblCity" runat="server" />
			<asp:TextBox ID="TxtCity" CssClass="FormText" Width="220px" meta:resourcekey="TxtCity" runat="server" />
			<asp:AutoCompleteExtender ID="AutoComplete_TxtCity" runat="server"
										ServiceMethod="AutoComplete_City"
										TargetControlID="TxtCity" />

		</div>
		<div class="PanelButtons">
			<asp:ValidationSummary CssClass="ValSummary" DisplayMode="List" ShowSummary="true" HeaderText="<%$ Resources:Messages,ValidationSummary %>" runat="server" />
			<asp:Button ID="ButSave" CssClass="FormButton" OnClick="ButSave_Click" meta:resourcekey="ButSave" runat="server" />
		</div>
	</asp:Panel>
</asp:Content>